<template>
	<view class="container">
		<web-view :src="data"></web-view>
	</view>
</template>

<script>
	import uParse from '@/components/u-parse/u-parse.vue'
	import {
		getPageData
	} from '@/api/index.js';
	export default {
		components: {
			uParse
		},
		data() {
			return {
				data: "",
				nodes: [{
					name: 'img',
					attrs: {
						style: 'width:30px;'
					},
					children: [{
						type: 'text',
						text: 'Hello&nbsp;uni-app!'
					}]
				}]

			}
		},
		onShow() {
			this.init()
		},
		methods: {
			init() {
				getPageData({
					data: {
						name: "wechat_in"
					}
				}).then(res => {
					if (res.code == 1) {
						this.data = res.data.content;
					}
				})

			},
		}

	}
</script>
<style lang="scss" scoped>
	.container {
		padding: 30upx;
		margin-bottom: 30px;
	}
</style>
